package com.cloud.drore.eboos.common.util;

import com.cloud.drore.eboos.common.entity.base.ShiroUser;

/**
 * 浙江卓锐科技股份有限公司 版权所有 © Copyright 2018<br>
 *
 * @Description: <br>
 * @Project: eboos <br>
 * @CreateDate: Created in 2018/3/20 17:58 <br>
 * @Author: <a href="836327318@qq.com">吴昌益</a>
 */
public class UserLocalData {

    private void ShiroUser(){
    }

    public static ThreadLocal<ShiroUser> currentUser = new ThreadLocal();

    public static ShiroUser getCurrentUser() {
        return currentUser.get();
    }

    public static void setCurrentUser(ShiroUser shiroUser) {
        currentUser.set(shiroUser);
    }
}
